// app.js
const bleTool = require('/utils/bleTool.js');
App({
  onLaunch() {
    wx.getSystemInfo({
        success: e => {
          this.globalData.StatusBar = e.statusBarHeight;
          let custom = wx.getMenuButtonBoundingClientRect();
          this.globalData.Custom = custom;  
          this.globalData.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
        }
    })
    this.globalData.bleTool.openBluetoothAdapter();
  },
  globalData: {
    userInfo: null,
    bleTool: bleTool
  }
})
